package com.csot.mybatis_plus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @author Sun.chuanwang
 * @version 1.0.0
 * @date 2021/1/17 21:57
 */
@Data
@TableName("tb_category")
public class Category {
    @TableId
    private Integer id;
    private String name;
    private Integer goodsNum;
   //@TableField("is_show")
    private Boolean isShow;
    @TableField("is_menu")
    private Boolean menu;
    private Integer seq;
    private Integer parentId;
    private Integer templateId;
    @TableField(exist = false)
    private List<Category> children;

}
